package com.fdd.dao.impl;

import com.fdd.dao.BookDao;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component("BookDaoImpl1")
@Scope("prototype")
public class BookDaoImpl1 implements BookDao {
    @Override
    public void save() {
        System.out.println("BookDaoImpl1::save...");
    }

    @PostConstruct
    public void init() {
        System.out.println("BookDaoImpl1::init...");
    }

    @PreDestroy
    public void destroy() {
        System.out.println("BookDaoImpl1::destroy...");
    }
}
